<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="/assets/jquery/jquery-3.1.1.min.js"></script>
    <script src="/assets/layui-2.9.18/layui.js"></script>
    <link rel="stylesheet" href="/assets/layui-2.9.18/css/layui.css">
    <link rel="stylesheet" href="/assets/layui-2.9.18/css/admin.css">
    <script src="/assets/september/common.js"></script>
    <script src="/assets/september/htmlBuilder.js"></script>
    <script src="/assets/september/search.js"></script>
    <link rel="stylesheet" href="/assets/pages/list.css">
    <style>
        .color_0 {
            color: red;
        }

        .color_1 {
            color: green;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 主体内容 -->
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-search-form-label " style="display: inline">手机号码</label>
                        <div class="layui-search-input-inline">
                            <input type="number" name="mobile" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layuiadmin-btn-list" lay-submit
                                lay-filter="LAY-app-contlist-search" onclick="doSearch(1);">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                    </div>
                </div>
            </div>

            <div class="layui-card-body">
                <div class="layui-table-box">
                    <table id="LAY-app-content-list" lay-filter="LAY-app-content-list" class="layui-table">
                        <thead>
                        <tr>
                            <td align="center">
                                <span>序号</span>
                            </td>
                            <td align="center">
                                <span>手机号码</span>
                            </td>
                            <td align="center">
                                <span>内容</span>
                            </td>
                            <td align="center">
                                <span>平台</span>
                            </td>
                            <td align="center">
                                <span>状态</span>
                            </td>
                            <td align="center">
                                <span>操作</span>
                            </td>
                        </tr>
                        </thead>
                        <tbody class="layui-table-body layui-table-main">
                        <tr class="data_row" style="display:none">
                            <td align="center">
                                <span>$[id]</span>
                            </td>
                            <td align="center">
                                <span>$[mobile]</span>
                            </td>
                            <td align="center">
                                <span>$[content]</span>
                            </td>
                            <td align="center">
                                <span>$[channel]</span>
                            </td>
                            <td align="center">
                                <span script="true">getStatus($[status])</span>
                            </td>
                            <td align="center" data-minwidth="150" class="layui-table-col-special">
                                <div class="layui-table-cell">
                                    <a class="layui-btn layui-btn-danger layui-btn-xs" onclick="delete($[id])"><i
                                                class="layui-icon layui-icon-delete"></i></a>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div class="layui-card-body">
                    <div id="page"></div>
                </div>
            </div>
        </div>
    </div>
    <!-- 主体内容结束-->
</div>
<script type="text/javascript">
    searchUrl = '/pisces/sms/log/listSentLogData';
    layui.use(function () {
        var layer = layui.layer;
        doSearch(1);
    });

    function callBackPage() {
    }

    function getStatus(status) {
        if (status == 1) {
            return '<span style="color: green">成功</span>'
        } else {
            return '<span style="color: red">失败</span>'
        }
    }
</script>
</body>
</html>
